{% load pretty_user %}
{% load zip %}
{% load points_diff %}
<p>
Meč koji ste igrali <b>{{ date_played|date }}</b> u <b>{{ date_played|time }}</b> je izbrisao
{{ user_deleted|pretty_user:2 }}.
<br/>
Vraćanje poena:
<table width="60%">
	<thead>
		<tr>
			<th>Igrač</th>
			<th width="100px">Poeni</th>
			<th width="50px">Razlika</th>
		</tr>
	</thead>
	<tbody>
		{%for user_point in user_points %}
		<tr>
			<td>{{ user_point.0|pretty_user:2 }}</td>
			{% if game_type == 1 %}
			<td>{{ user_point.1 }} → {{ user_point.0.chess_points }}
			{% elif game_type == 2 %}
			<td>{{ user_point.1 }} → {{ user_point.0.tf_points }}
			{% elif game_type == 3 %}
			<td>{{ user_point.1 }} → {{ user_point.0.football_points }}
			{% elif game_type == 4 %}
			<td>{{ user_point.1 }} → {{ user_point.0.basket_points }}
			{% else %}
			{% endif %}
			<td>
			{% if game_type == 1 %}
			{{ user_point.0.chess_points|points_diff:user_point.1 }}
			{% elif game_type == 2 %}
			{{ user_point.0.tf_points|points_diff:user_point.1 }}
			{% elif game_type == 3 %}
			{{ user_point.0.football_points|points_diff:user_point.1 }}
			{% elif game_type == 4 %}
			{{ user_point.0.basket_points|points_diff:user_point.1 }}
			{% else %}
			{% endif %}
			</td>
		</tr>
		{%endfor%}
	</tbody>
</table>
</p>

{% include "mail/footer.html" %}